const path = require('path');
function resolve (dir) {
    return path.join(__dirname, dir)
}
module.exports = {
    lintOnSave: true,
    chainWebpack: (config)=>{ //路径别名
        config.resolve.alias
            .set('src', resolve('src'))
            .set('hh', resolve('src/components/pages/hh'))
            .set('hqg', resolve('src/components/pages/hqg'))
            .set('cxl', resolve('src/components/pages/cxl'))
            .set('lcj', resolve('src/components/pages/lcj'))
            .set('lxh', resolve('src/components/pages/lxh'))
            .set('assets',resolve('src/assets'))
    }
}